package com.engineering.elink.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.engineering.elink.domain.Area;

public interface AreaMapper {
    int deleteByPrimaryKey(Integer areaId);

    int insert(Area record);

    int insertSelective(Area record);

    Area selectByPrimaryKey(Integer areaId);

    int updateByPrimaryKeySelective(Area record);

    int updateByPrimaryKey(Area record);
    
    List<Map<String,Object>> selectByRegionId (Integer regionId);

	Map<String, Object> selectAreaInfo(@Param("provinceId")int provinceId, @Param("regionId")int regionId, @Param("areaId")int areaId);

	Map<String, Object> selectInfo(@Param("scId")int scId, @Param("dcId")int dcId);

	Map<String, Object> selectHierInfo(@Param("hierId")int hierId);
}